//引入day.js
import dayjs from "dayjs";

//index.js
const app = getApp()

Page({
  data: {
    value: 4,
    day: dayjs().format('MM' + '月' + 'DD' + '日'),
    swiperIndex: '1'
  },

  onChange(event) {
    this.setData({
      value: event.detail,
    });
  },

  /**
   * 点击跳转到预约
   */
  toReserve: function () {
    wx.navigateTo({
      url: '/pages/reserve/reserve',
    })
  },


  /**
   * swiper下标
   */
  onslideCshange: function (e) {
    this.setData({
      swiperIndex: e.detail.current + 1
    })
  },

  /**
   * 地图详情
   */
  toMap:function(){
    wx.navigateTo({
      url: '/pages/map/map',
    })
  },
  onLoad: function () {
   
  },
})